package com.xebia.lightning.repository;

import com.xebia.lightning.domain.Tweet;

import java.util.Date;
import java.util.List;
import org.springframework.roo.addon.layers.repository.mongo.RooRepositoryMongo;

@RooRepositoryMongo(domainType = Tweet.class)
public interface TweetRepository extends TweetRepositoryCustom{

    List<com.xebia.lightning.domain.Tweet> findAll();

    List<com.xebia.lightning.domain.Tweet> findByTweetId(long tweetId);

    List<com.xebia.lightning.domain.Tweet> findByPersitedDateBetween(
            Date startDate, Date endDate);

    List<com.xebia.lightning.domain.Tweet> findAllTweetsByProcessed(
            boolean processed);

}
